package miiteen.hb.fw.beans;

import miiteen.core.configuration.MeetingProperties;
import miiteen.customsportal.basic.beans.HistoryViewBase;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class FwInfo extends HistoryViewBase {
    /**
     * id
     */
    private String id;
    /**
     * 标题
     */
    private String subject;
    /**
     * 办结时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completeTime;
    /**
     * 明细链接
     */
    private String url;
    /**
     * 序号
     */
    private String snNo;
    /**
     * 拟稿部门
     */
    private String draftParentDeptName;
    /**
     * 拟稿日期
     */
    private String draftDate;

    /**
     * 显示日期
     */
    private Date displayDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public String getUrl() {
        return MeetingProperties.getConfigByKey("fw.url") + this.id;
    }

    public String getSnNo() {
        return snNo;
    }

    public void setSnNo(String snNo) {
        this.snNo = snNo;
    }

    public String getDraftParentDeptName() {
        return draftParentDeptName;
    }

    public void setDraftParentDeptName(String draftParentDeptName) {
        this.draftParentDeptName = draftParentDeptName;
    }

    public String getDraftDate() {
        return draftDate;
    }

    public void setDraftDate(String draftDate) {
        this.draftDate = draftDate;
    }

    public Date getDisplayDate() {
        return this.completeTime;
    }
}
